<?php
$ip = $_SERVER['REMOTE_ADDR'];
if ($ip=='127.0.0.1'){
$conn=mysql_connect("localhost","root","vertrigo");
$db=mysql_select_db("tnu",$conn);
} else{	
$conn=mysql_connect("localhost","istnuedu_istn","okemcung");
$db=mysql_select_db("istnuedu_istn",$conn);
}
?>